<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.2.1.js"></script>
</head>
<body>
    <div>html</div>
    <div>css</div>
    <div>javascript</div>
    <script>
        let divs = $("div");
        let arr = [];
        divs.each(function(index,ele){
            let content = $(ele).html();
            arr.push({
                name:content
            })
        })
        console.log(arr);
    </script>
</body>
</html>